package dao;


import utils.Book;

import java.util.ArrayList;

//定义对图书表的增删改查接口
public interface IBook {
    //增
    public boolean insert(Book book);
    //删
    public boolean delete(int book_id);
    //改
    public boolean update(Book book);
    //根据图书名称查询
    public Book findbyname(String book_name);
    //根据图书id查询
    public Book findbyId(int book_id);
    //根据作者查
    public ArrayList<Book> find(String author);
    //查询所有
    public ArrayList<Book> findAll();
}
